package com.ruoyi.community.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 住户管理对象 nucleic_household
 * 
 * @author ruoyi
 * @date 2023-04-09
 */
public class Household extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 楼栋 */
    @Excel(name = "楼栋")
    private Long buildingsId;

    /** 小区 */
    @Excel(name = "小区")
    private Long communityId;

    /** 住户名字 */
    @Excel(name = "住户名字")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 状态 0 异常 1正常
 */
    @Excel(name = "状态 0 异常 1正常 ")
    private String state;

    /** 描述 */
    @Excel(name = "描述")
    private String description;
    /** 小区 */
    private Community community;
    /** 楼栋 */
    private Buildings buildings;

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public Buildings getBuildings() {
        return buildings;
    }

    public void setBuildings(Buildings buildings) {
        this.buildings = buildings;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBuildingsId(Long buildingsId) 
    {
        this.buildingsId = buildingsId;
    }

    public Long getBuildingsId() 
    {
        return buildingsId;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buildingsId", getBuildingsId())
            .append("communityId", getCommunityId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("state", getState())
            .append("description", getDescription())
            .toString();
    }
}
